﻿@using Easy.Data
@model Easy.Modules.Role.RoleEntity

@if (Authorizer.Authorize(Easy.CMS.Common.PermissionKeys.ManageRole))
{
    <div id="toolBar">
        <a href="@Url.Action("Create")" class="btn btn-primary btn-xs">新建</a>
    </div>
}
@(
 Html.Grid().SetColumnTemplate(col =>
 {
     col.Add(m => m.Title, "<a href='" + Url.Action("Edit") + "/{ID}'>{Title}</a>");
 }).SetAsToolBar("#toolBar").ShowCheckbox(m => m.ID).OrderBy(m => m.ID, OrderType.Descending)
)
